<template>
  <div>
    <el-button type="success" @click="success">Success</el-button>
    <el-button type="danger" @click="failed">Failed</el-button>
  </div>
</template>

<script>
export default {
  name:'useMessage',
  methods:{
    success() {
      this.$message("success")
    },
    failed
  }
}
</script>

<style>

</style>